/**
 * 
 */
package com.worksmap.core.support;

import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.worksmap.core.constant.RateConstant;

/**
 * @author jack
 *
 */
public class TaoBaoClientFactory {
	
	private static TaobaoClient client = null;
	
	public static TaobaoClient getClient(){
		if(client == null){
			client = new DefaultTaobaoClient(RateConstant.apiUrl, RateConstant.appkey, RateConstant.appSecret);
		}
		return client;
	}
}
